package com.liao.ticket.service;

import com.liao.ticket.dao.pojo.Passenger;
import com.liao.ticket.vo.PassengerVo;
import com.liao.ticket.vo.Result;
import com.liao.ticket.vo.params.PassengerParams;

public interface PassengerService {
    Result selectAllByUid();

    Result selectByIdAndUid(Long id);

    Result selectByPhoneAndUid(String phone);

    Result addOne(PassengerParams passengerParams);

    Result updateOneById(PassengerParams passengerParams);

    Result deleteAllByUid();

    Result deleteOneById(Long id);

    PassengerVo selectOneById(Long passengerId);

    Passenger findOneByIdAndUid(Long passengerId);
}
